package com.topnav.mc.admin.entity;

import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.topnav.mc.entity.base.BaseEntity;
import com.topnav.mc.validator.group.IAdd;

/**
 * 说明：
 * @类名: user_organizaiton
 * <p>
 *
 * </p>
 * @author   kenny
 * @Date	 2021年12月1日下午5:50:08
 */
import com.topnav.mc.validator.group.IUpdate;
import lombok.Data;
@Data

@TableName("mc_user_organization")
public class UserOrganizaiton extends BaseEntity{
	/**	 */
	private static final long serialVersionUID = 8123529312260821348L;
	@NotNull(message = "不允许为空",groups={IAdd.class,IUpdate.class})
	private Long userId;
	@NotNull(message = "机构不允许为空",groups={IAdd.class,IUpdate.class})
	private Long orgId;
	@NotNull(message = "角色不允许为空",groups={IAdd.class, IUpdate.class})
	private Long roleId;
}
